package br.com.guinchomarinho.entityManager;

import br.com.guinchomarinho.beans.Cliente;
import br.com.guinchomarinho.managedbeans.ClienteManagedBean;

public class ClienteEntityManager extends GenericEntityManager{
	
	
	

	
	
	public void insert(){
		
		GenericEntityManager gnc = new GenericEntityManager();		
		Cliente clienteBean = new Cliente();
		ClienteManagedBean clienteMBean = new ClienteManagedBean();
		
		clienteBean.setNomeclientes(clienteMBean.getNome());
		clienteBean.setCpfcnpjclientes(clienteMBean.getCpf());
		clienteBean.setTelefone1clientes(clienteMBean.getTelefone1());
		
		gnc.insert(clienteBean);	
	
	}	
	
	/*
	public void alter(){
		
		GenericEntityManager gnc = new GenericEntityManager();
		
		gnc.alter(obj);		
	
	}
	
	
	public void delete(){
		
		GenericEntityManager gnc = new GenericEntityManager();
		
		gnc.delete(obj);		
	
	}
	
	
	public void list(){
		
		GenericEntityManager gnc = new GenericEntityManager();
		
		gnc.insert(obj);		
	
	}
	
	*/

}
